upstream dcAppServ{
  server 127.0.0.1:8082;
}    

server {
	server_name   data.computing.ws.game.yy.com data.computing.ws.game.yy.cn;
	root   		/data/webapps/data_computing/web-service;
	access_log    /data2/log/nginx/datacomputing.access.log  main;
	error_log 	/data2/log/nginx/datacomputing.error.log;

    location ~ ^/(WEB-INF)/ { 
      deny all;
    }
    
     location /rpc/ {
        #include /data/sa/additional.conf;
        #include /data/sa/ipsec.conf;
        	allow all;
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass  http://dcAppServ;
   }

   location / {
        #include /data/sa/additional.conf;
        #include /data/sa/ipsec.conf;
       		allow all;
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass  http://dcAppServ;
   }
}